home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
docs
/
BUILD.DOC
next >
Wrap
Text File
|
1997-04-16
|
3KB
|
107 lines
Build instructions:
Thare are two sections labeled DOS / all Windows, and Linux/Unix.
Assuming DR is your dynace root directory such as c:\dynace
and go to the appropriate section.
DOS / all Windows
-----------------
First make sure that your command line compiler is set up correctly.
I suggest that you create a "Hello, World" program and compile and
link it from the command line to be sure it's all set up correctly.
Next, goto the DR directory and if you are operating under the DOS or
Windows 3.1 OS you should edit the file named 16bit.bat. Otherwise,
edit 32bit.bat. The file will tell you what to do.
Next execute the file you just edited by typing:
16bit
or
32bit
The following table indicates the correct makefile for each supported
environment:
M16.DM Microsoft C 16 bit
M32.DM Microsoft C 32 bit
B16.DM Borland C 16 bit (requires tasm.exe - their assembler)
B32.DM Borland C 32 bit (requires tasm32.exe - their assembler)
W32.DM Watcom C 32 bit
S32.DM Symantec C 32 bit (not tested recently)
Assuming MF is the appropriate makefile for your environment, type:
(Note: the case does matter.)
cd DR
dmake -f MF STRAT=-S1 newgens
dmake -f MF all-scratch
If you have trouble with the top level make (perhaps in DOS) you may
need to look at what it's doing and do it by hand.
You may want to do the following:
Add DR\include to your compiler's include search path
Add DR\lib to your linker's library search path
After you have everything built and setup you may want to go to
DR/examples/exam01 and see the readme file for the Dynace language
examples (tutorial).
Linux / Unix
------------
GNU make and gcc are assumed.
cd DR
make -f makefile.unx
At this point the system is built in the portable (but slower) mode.
You can test it by going into examples/exam03, building and running
the example using the following commands:
cd examples/exam03
make -f makefile.unx
main
If you are operating under a 386 Linux/Unix you should be able to
rebuild using the faster mode which relies on an assembler piece.
To do this just type the following commands (after the above commands):
cd DR
make -f makefile.unx STRAT=-S1 newgens
make -f makefile.unx realclean
(edit kernel/makefile.unx to enable the inclusion of JUMPTO)
make -f makefile.unx
You should then clean and re-run the example program as follows:
cd examples/exam03
make -f makefile.unx clean
make -f makefile.unx
main
If you have any trouble linking it may be due to a different version of
GCC. You may want to try a different jumpto assembler piece. See
kernel/makefile.unx and kernel/jumpto/*
That directory contains jumpto assembler routines for several machines.
You can then type the following line in order to remove the .unx file
extension from all makefiles and negate the need for the "-f makefile.unx"
make option for the remainder of the system and example builds.
dropunx.sh
After you have everything built and setup you may want to go to
DR/examples/exam01 and see the readme file for the Dynace language
examples (tutorial).